//原型方法排重
//var arr=[5,4,26,9,4,8,5,14]；
Array.prototype.ex = function () {
    let arr1 = []
    for (let i = 0; i < this.length; i++) {
        if (arr1.indexOf(this[i]) === -1) {
            arr1.push(this[i])
        }
    }
    return arr1
}
let arr = [5, 4, 26, 9, 4, 8, 5, 14]
console.log(arr.ex())